use solutiont3::*;

pub fn time_info(time: &str) -> String {
    let time: Vec<_> = time.split('-').map(|x| x.parse::<u16>().unwrap()).collect();
    let date = Date::from_year_month_day(time[0], time[1] as u8, time[2] as u8).unwrap();
    format!(
        "{},{},{}",
        date.get_week_num_the_year().unwrap(),
        date.get_remaining_days_the_year().unwrap(),
        date.get_remaining_days_until_the_next_new_year().unwrap()
    )
}
